import request from '@/utils/request'

// 查询出差报销列表
export function listBusinesstrip(query) {
  return request({
    url: '/expensereimbursement/businesstrip/list',
    method: 'get',
    params: query
  })
}

// 查询出差报销详细
export function getBusinesstrip(businessTripId) {
  return request({
    url: '/expensereimbursement/businesstrip/' + businessTripId,
    method: 'get'
  })
}

// 新增出差报销
export function addBusinesstrip(data) {
  return request({
    url: '/expensereimbursement/businesstrip',
    method: 'post',
    data: data
  })
}

// 修改出差报销
export function updateBusinesstrip(data) {
  return request({
    url: '/expensereimbursement/businesstrip',
    method: 'put',
    data: data
  })
}

// 删除出差报销
export function delBusinesstrip(businessTripId) {
  return request({
    url: '/expensereimbursement/businesstrip/' + businessTripId,
    method: 'delete'
  })
}
